<template>
  <el-row :gutter="20">
    <el-form label-width="80px" ref="form" :model="form">
      <el-col :span="6">
        <el-form-item label="组织名称" prop="orgName">
          <el-input v-model="form.orgName"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="负责人" prop="personCharge">
          <el-input v-model="form.personCharge"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="6">
        <el-form-item label="联系电话" prop="tel">
          <el-input v-model="form.tel"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="6" style="text-align: right">
        <el-button type="primary" @click="handleSearch">查询</el-button>
        <el-button @click="handleReset">重置</el-button>
      </el-col>
    </el-form>
  </el-row>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: 'right',
      form: {
        orgName: '',
        personCharge: '',
        tel: ''
      },
      page: {
        pageNum: 1,
        pageSize: 10
      }
    };
  },
  methods: {
    handleSearch() {
      // console.log(this.form)
      this.$emit('getTableData',{...this.form})
    },
    handleReset(){
      this.$refs.form.resetFields();
      this.$emit('getTableData',{...this.form})
    }
  }
}
</script>
